<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/5/6
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<%
	pageContext.setAttribute("key","pageContext");
	request.setAttribute("key","request");
	session.setAttribute("key","session");
	application.setAttribute("key","application");
%>

${pageScope.key}
${requestScope.key}
${sessionScope.key}
${applicationScope.key}

<%--pageContext 可以获取内置对象 通过内置对象可以获取很多信息--%>
主机名：${pageContext.request.serverName}
端口号：${pageContext.request.serverPort}
项目路径：${pageContext.request.contextPath}



</body>
</html>
